﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.OrangeDog.Model
{
    public class Users:BaseModel
    {
        
        [Required(ErrorMessage ="{0}不能为空")]
        [StringLength(50),Column(TypeName="varchar(50)")]
        [Display(Name ="邮箱")]
        public string Email { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "密码")]
        public string Pwd { get; set; }
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "昵称")]
        public string NickName { get; set; }
        [Display(Name = "状态码")]
        public int StateCode { get; set; }
    }
}
